<%- include('./layouts/admin_header.ejs'); %>

<%- include('./layouts/admin_navbar.ejs'); %>
    <div class="container-fluid">
      <div class="page-title">
        <h1>网站设置</h1>
      </div>
      <!-- 有错误信息时展示 -->
     <div class="alert alert-danger">
        <strong>错误！</strong><span>发生XXX错误</span>
      </div>
      <form class="form-horizontal">
      </form>
    </div>
  </div>

<%- include('./layouts/admin_aside.ejs'); %>
<%- include('./layouts/admin_footer.ejs'); %>
<script type='text/template' id='settingTemp'>
    <div class="form-group">
      <label for="site_logo" class="col-sm-2 control-label">网站图标</label>
      <div class="col-sm-6">
        <input id="site_logo" name="site_logo" type="hidden">
        <label class="form-image"  style='background:#000'>
          <input id="logo" type="file">
          <img src="{{data[1].value}}">
          <i class="mask fa fa-upload"></i>
        </label>
      </div>
    </div>
    <div class="form-group">
      <label for="site_name" class="col-sm-2 control-label">站点名称</label>
      <div class="col-sm-6">
        <input id="site_name" name="site_name" class="form-control" type="type" placeholder="站点名称" value='{{data[2].value}}'>
      </div>
    </div>
    <div class="form-group">
      <label for="site_description" class="col-sm-2 control-label">站点描述</label>
      <div class="col-sm-6">
        <textarea id="site_description" name="site_description" class="form-control" placeholder="站点描述" cols="30" rows="6">{{data[3].value}}</textarea>
      </div>
    </div>
    <div class="form-group">
      <label for="site_keywords" class="col-sm-2 control-label">站点关键词</label>
      <div class="col-sm-6">
        <input id="site_keywords" name="site_keywords" class="form-control" type="type" placeholder="站点关键词" value='{{data[4].value}}'>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">评论</label>
      <div class="col-sm-6">
        <div class="checkbox">
          <label><input id="comment_status" name="comment_status" type="checkbox" {{data[6].value == 1?'checked':''}}>开启评论功能</label>
        </div>
        <div class="checkbox">
          <label><input id="comment_reviewed" name="comment_reviewed" type="checkbox"  {{data[7].value == 1?'checked':''}}>评论必须经人工批准</label>
        </div>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-6">
        <input type="button" class="btn btn-primary btnSave" value="保存设置">
      </div>
    </div>
  </script>
  <script src="/assets/vendors/template/template.js"></script>
  <script src="/assets/js/settings.js"></script>
